<template>
	<view>
		<text>{{testData.name}}</text>
	</view>
</template>

<script>

	
	let tag = 'purchase'
	
	export default {
		data() {
			return {
				testData: "测试信息"
			}
		},
		methods: {
			
		},
		
		onLoad(parameters) {
			this.$log.info(tag, `onLoad`)
			let productJSONString = decodeURIComponent(parameters.product)
			let product = JSON.parse(productJSONString)
			this.testData = product
		},
		
		onShow() {
			this.$log.info(tag, `onShow`);
		},
		
		onReady() {
			this.$log.info(tag, `onReady`);
		},
		
		onHide() {
			this.$log.info(tag, `onHide`);
		},
		
		onUnload() {
			this.$log.info(tag, `onUnload`);
		},
	}
</script>

<style>

</style>